#include "framework.h"
#include "esp_log.h"
#include "commu.h"
#include "bsp_uart.h"
#include "bluetooth.h"
#include "m_memory.h"

static const char *TAG = "framework";

#define POOL_SIZE (16 * 1024)
uint8_t memory_pool[POOL_SIZE];
MemoryPoolManager pool;

void frameworkInit(void)
{
    ESP_LOGI(TAG, "framework init");

    mempool_init(&pool, memory_pool, POOL_SIZE);

    bsp_uart_init();
    commu_init();
    bluetooth_init();
}